home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0104.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  1.3 KB  |  41 lines

  1. Hey all, 
  2. I'm a little worried about asking this question seeing as everyone has a
  3. short fuse on this list, but here goes..
  4.  
  5. I'm too aquainted with extensions, but I'm under the impression that they
  6. are "add-ins" for amos.. right?
  7. Now, I have 2 pc's <it take 2 to equal 1 amiga ;) > and I do some coding in
  8. Visual Basic <if you can call that coding>, one feature I like from VB is
  9. the SELECT CASE thingy.. I've been looking at alot of my AMOS coding and I
  10. see alot of "if x = "XXX" then... : if x = "YYY" then..." statements and I
  11. could save myself alot of coding if AMOS had the SELECT CASE statement.
  12. Would it be possible for someone to make an extension to allow that?
  13. For those of you who don't know how SELECT CASE works..
  14.  
  15. IF.. THEN Statements:
  16. ---
  17. INPUT X$
  18.  
  19. IF X$ = "Hello" THEN PRINT "Hello right back, Buddy!!!"
  20. IF X$ = "Goodbye" THEN PRINT "Ok, seeya!!!"
  21. ---
  22.  
  23. SELECT CASE statements:
  24. ---
  25. INPUT X$
  26.  
  27. SELECT CASE X$
  28.     CASE "hello"
  29.         PRINT "Hello right back, Buddy!!!"
  30.     CASE "Goodbye"
  31.         PRINT "Ok, seeya!!!"
  32. END SELECT
  33. ---
  34. ----------------ICQ# 1860019-------------------
  35. ------------VB5-Learning-Edition---------------
  36. -------"To Transcendence and BEYOND!!!"--------
  37. --Original Art, stories, & all original minds--
  38. ------- http://www.radiks.net/skid/ -----------
  39. -----------------------------------------------
  40.  
  41.